﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AutoInsurance.Classes
{
    public class Policy
    {
        public Policy(String vin_code, int id_manager, DateTime overdate, 
            Boolean isopen, String type, double totalsum)
        {
            this.vin_code = vin_code;
            this.id_manager = id_manager;
            this.overdate = overdate;
            this.isopen = isopen;
            this.type = type;
            this.totalsum = totalsum;
        }
        private int id_manager;
        private String vin_code;
        private DateTime overdate;
        private Boolean isopen;
        private String type;
        private double totalsum;

        public int Id_client
        {
            get { return id_manager; }
            set { id_manager = value; }
        }


        public String Vin_code
        {
            get { return vin_code; }
            set { vin_code = value; }
        }

        public DateTime Overdate
        {
            get { return overdate; }
            set { overdate = value; }
        }

        public Boolean Isopen
        {
            get { return isopen; }
            set { isopen = value; }
        }
        public String Type
        {
            get { return type; }
            set { type = value; }
        }

        public double Totalsum
        {
            get { return totalsum; }
            set { totalsum = value; }
        }
    }
}